﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="Login" %>
<style type="text/css">
    .style2
    {
        width: 140px;
        height:20px;
    }
    .style3
    {
        width: 70px;
        height: 20px;
    }
    .style4
    {
        width: 70px;
        height: 20px;
    }
    .style5
    {
        width: 70px;
        height: 15px;
    }
     .style11
    {
        height:20px;
    }
    .style51
    {
        height: 15px;
    }
    .style53
    {
        width: 70px;
        height: 20px;
    }
    </style>
<table  id="tablogin" style="border: 1px solid #CCCCCC; padding: 0px; margin: 0px; width:210px; border-spacing: 0px;" 
    border="0" runat="server">
    <tr>
        <td bgcolor="#CCCCCC" colspan="3" 
            style="text-transform: capitalize; text-decoration: blink">
            <center style="height:20px; width:210px;">用户登录</center></td>
    </tr>
    <tr>
        <td class="style53" style="text-align: right">
            用户名</td>
        <td class="style2" colspan="2">
            <input id="Username" type="text" style="width:128px" runat=server/></td>
    </tr>
    <tr>
        <td class="style53" style="text-align: right">
            密&nbsp;&nbsp;&nbsp; 码</td>
        <td class="style2" colspan="2">
            <input id="Password" style="width:128px" type="password" runat="server" /></td>
    </tr>
    <tr>
        <td class="style53" style="text-align:right;">
            验证码</td>
        <td class="style2" colspan="2">
            <asp:TextBox ID="txtValid" runat="server" Width="70px"></asp:TextBox>
        <asp:Label ID="labValid" runat="server" Text="8888" BackColor="#CC0000" Font-Names="幼圆" ForeColor=white></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style11" style="text-align: center;" colspan="3">
            <asp:Label ID="labError" runat="server" Text="用户名或者密码错误，请重新输入..." 
                ForeColor="Red"  Width="210px" Font-Size="13px" Visible="false" ></asp:Label>
        </td>
    </tr>
    </tr>
    <tr>
        <td class="style5">
            </td>
        <td class="style3">
            <asp:Button ID="Userlog" runat="server" Text="登录" onclick="Userlog_Click" 
                Width="58px" />
        </td>
        <td class="style4">
            <asp:Button ID="Register" runat="server" Text="注册" Width="58px" 
                onclick="Register_Click" />
        </td>
    </tr>
</table>
<table style="border: 1px solid #CCCCCC; padding: 0px; margin: 0px; width:210px; height:105px; border-spacing: 0px;" 
    border="0" visible="false" id="tabafterlogin" runat="server" >
    <tr>
        <td bgcolor="#CCCCCC" colspan="3" 
            style="text-transform: capitalize; text-decoration: blink">
            <center style="height:20px; width:210px;">欢迎光临</center></td>
    </tr>
    <tr>
        <td class="style51" style="text-align: center" colspan="3" >
            欢迎您,<asp:Label ID="labUserName" runat="server" Text=""></asp:Label>！ 
        </td>
    </tr>
    <tr>
        <td class="style51" colspan="3" >
            <asp:Label ID="labLastLog" runat="server" Text="" style="text-align:center Font-size:13px" ></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style11" style="text-align: center;" colspan="3">
            <asp:Label ID="labVIP" runat="server" Text="您为VIP用户，购买商品可以享受9折优惠..." 
                ForeColor="Red"  Width="210px" Font-Size="13px" Visible=false></asp:Label>
        </td>
    </tr>
    <tr>
        <td class="style5">
            &nbsp;</td>
        <td class="style3">
            <asp:Button ID="Changeinfo" runat="server" Text="修改信息" Width="64px" 
                onclick="Changeinfo_Click"  CausesValidation="False" Font-Size="14px" />
        </td>
        <td class="style4">
            <asp:Button ID="Logout" runat="server" Text="退出登录" Width="64px"
            onclick="Logout_Click"  CausesValidation="False" Font-Size="14px" />
        </td>
    </tr>
</table>




